package com.ys.nms.module.business.controller.admin.alertLog.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 报警日志新增/修改 Request VO")
@Data
public class AlertLogSaveReqVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8555")
    private Integer id;

    @Schema(description = "规则ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2360")
    @NotNull(message = "规则ID不能为空")
    private Integer ruleId;

    @Schema(description = "设备ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "7499")
    @NotNull(message = "设备ID不能为空")
    private Integer deviceId;

    @Schema(description = "告警状态", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "告警状态不能为空")
    private Integer state;

    @Schema(description = "详情")
    private byte[] details;

    @Schema(description = "时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "时间不能为空")
    private LocalDateTime timeLogged;

}